package com.tbh.annotation.java.impor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ConfigMain {
    public static void main(String[] args) {
        // 在b中引入a的声明
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(ConfigB.class);
        A a = applicationContext.getBean(A.class);
        B b = applicationContext.getBean(B.class);
    }
}
